package com.xywl.escort.view.coupon;

import com.xywl.escort.di.ActivityScoped;
import com.xywl.escort.di.FragmentScoped;
import com.xywl.escort.view.message.MessageActivity;
import com.xywl.escort.view.message.MessageContract;
import com.xywl.escort.view.message.MessagePresenter;

import dagger.Binds;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;

@Module
public abstract class CouponModule {

    @FragmentScoped
    @ContributesAndroidInjector
    abstract CouponActivity couponActivity();

    @ActivityScoped
    @Binds
    abstract CouponContract.Presenter couponPresenter(CouponPresenter presenter);
}
